From: Carlos Garnacho Date: Tue, 16 Feb 2021 23:57:13 +0000 (+0100) Subject: overview: Synchronize panel opacity with overview leave animation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~305 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=76836fe3888f6ee85aa2b18b2b711d2f388ca2c2;p=gnome-shell.git overview: Synchronize panel opacity with overview leave animation Gestures leaving the overview from a short distance result in an ugly effect with the panel opacity transitionhaving a fixed duration. Make this transition have the same duration (although in a hackish way) so we avoid the ugly effect. Part-of: --- diff --git a/js/ui/overview.js b/js/ui/overview.js index 6fbc39b4e..3f881da57 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -397,6 +397,7 @@ var Overview = class { if (endProgress === 0) { this._shown = false; this.emit('hiding'); + Main.panel.style = 'transition-duration: %dms;'.format(duration); onComplete = () => this._hideDone(); } else { onComplete = () => this._showDone(); @@ -626,6 +627,8 @@ var Overview = class { else Main.layoutManager.hideOverview(); + Main.panel.style = null; + this._syncGrab(); }